﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MMITDomain.Entities
{
    public class Customer
    {
        public int Id
        {
            get;
            set;
        }

        public string Username
        {
            get;
            set;
        }

        public string Firstname
        {
            get;
            set;
        }

        public string Middlename
        {
            get;
            set;
        }

        public string Lastname
        {
            get;
            set;
        }

        public string Sex
        {
            get;
            set;
        }

        public string Mobile
        {
            get;
            set;
        }

        public DateTime? DateCreated
        {
            get;
            set;
        }

        public string CreatedBy
        {
            get;
            set;
        }

        public virtual ICollection<Account> Accounts
        {
            get;
            set;
        }

       // [ForeignKey("CountryId")]
        public virtual Country Country
        {
            get;
            set;
        }

        public int? CountryId
        {
            get;
            set;
        }

        public int? IdentificationTypeId
        {
            get;
            set;
        }

        public virtual IdentificationType IdentificationType
        {
            get;
            set;
        }

        public string IdentificationNumber
        {
            get;
            set;
        }
    }
}
